--
-- Author: yawei.zhu
-- Date: 2018-09-25 10:59:00
--

local EntityExtend = class("EntityExtend")

function EntityExtend:ctor(data)
	self.hpPercent = 0
	self.fieldTag = 0
	if data then 
		self:read(data)
	end
end

function EntityExtend:read(msg)
	self.hpPercent = msg.hpPercent
	self.fieldTag = msg.fieldTag
end

function EntityExtend:getHpPercent()
	return self.hpPercent
end

function EntityExtend:getFieldTag()
	return self.fieldTag
end

return EntityExtend
